<link href="__STATIC__/user/css/tab.css" type="text/css" rel="stylesheet">
<link href="__STATIC__/user/css/profiles.css" type="text/css" rel="stylesheet">
<script src="__STATIC__/js/jquery-1.11.2.min.js"></script>

    <div id="right-content"> <!-- ngView:  -->
        <div class="profiles-container ng-scope" ng-view="">
            <div class="profiles-info ng-scope" id="profilesCheck">
                <?php if($op == 'index'){ ?>
                <form action="<?php echo U('Orderform/add') ?>" method="post" enctype="multipart/form-data">
                <?php } ?>
                <?php if($op == 'modify'){ ?>
                <form action="<?php echo U('Orderform/modify',array('oid'=>Q('get.oid'))) ?>" method="post" enctype="multipart/form-data">
                <?php } ?>

                    <ul class="ng-scope">
                        <li>
                            <span>商品名称：</span>
                            <input type="text" name="ocont" placeholder="请输入商品名称" value="<?php echo $goods['gname'] ?>">
                        </li>
                        <li>
                            <span>商品数量：</span>
                            <input type="text" name="onum" placeholder="请输入商品数目" value="<?php echo $goods['onum'] ?>">
                        </li>
                        <li>
                            <span>收货人姓名：</span>
                            <input type="text" name="adname" placeholder="请输入收货人姓名" value="<?php echo $goods['adname'] ?>">
                        </li>
                        <li>
                            <span>收货人电话：</span>
                            <input type="text" name="admoblie" placeholder="请输入收货人电话" value="<?php echo $goods['admoblie'] ?>">
                        </li>
                        <li>
                            <span>收货地址：</span>
                            <input type="text" name="address" placeholder="请输入收货地址" value="<?php echo $goods['address'] ?>">
                        </li>
                        <li>
                            <span>商品备注：</span>
                            <input type="text" name="notes" placeholder="请输入商品备注" value="<?php echo $goods['notes'] ?>">
                        </li>
                        <li>
                            <span>价格：</span>
                            <input type="text" name="emoney" disabled placeholder="商品总价" value="<?php echo $goods['omoney'] ?>">
                            <input type="hidden" name="money" value="">
                        </li>
                        <li>
                            <input type="hidden" name="gid" value="<?php echo Q('get.gid'); ?>">
                            <button class="hd-btn hd-btn-danger hd-btn-lg">保存修改</button>
                        </li>
                    </ul>
                </form>
                <?php if($goods['gpic']){ ?>
                <div class="pic_img" style="position: absolute; left: 1000px; top: 100px;">
                    <img src="__ROOT__/<?php echo $goods['gpic'] ?>" width="300">
                    <div>
                        <span>商品单价：</span>￥
                        <span id="onemoney"><?php if($vip == '0'){echo $goods['reprice'];}elseif($vip == '1'){echo $goods['v1price'];}elseif($vip =='2'){echo $goods['v2price'];} ?>
                        </span>
                    </div>
                </div>
                <?php } ?>
                <script>
                    $(function(){
                        $('input[name="onum"]').blur(function(){
                            var money = $('#onemoney').text();
                            var num = $('input[name="onum"]').val();
                            money = money * num;
                            $('input[name="emoney"]').val(money);
                            $('input[name="money"]').val(money);
                        })
                    })
                </script>
            </div>
        </div>
    </div>
</div>
</body>
</html>